#include "dialogitem.h"
#include "ui_dialogitem.h"

dialogitem::dialogitem(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::dialogitem)
{
    ui->setupUi(this);
}

dialogitem::~dialogitem()
{
    delete ui;
}

void dialogitem::setAccount(const QString &account)
{
    ui->account->setText(account);
}

void dialogitem::setMessage(const QString &message)
{
    ui->message->setText(message);
}

void dialogitem::setPix(const QPixmap &pix)
{

    ui->headPhoto_2->setPixmap(pix);

}

void dialogitem::setTime(const QString &time)
{
    ui->time->setText(time);
}
